#!/usr/bin/env bash
#########################################################################
# File Name   : run-test-server.sh
# Author      : seadog
# mail        : seadog0514@163.com
# Version     : 0.1
# Created Time: Sun 2024-01-21 10:17:41(+0800)
#########################################################################

# Usage:

set -euo pipefail
# set -E
#     If set, any trap on ERR is inherited by shell functions, command
#     substitutions, and commands executed in a subshell environment.

export TZ="Asia/Shanghai"
APP_ROOT=$(dirname "$(readlink -fm "$0")")
cd "${APP_ROOT}"

watchexec -r -e py -- python3 manage.py runserver 0.0.0.0:1888
